package truef.commodity.domain;

import javax.persistence.*;

import edu.zut.cs.software.base.domain.BaseEntity;

@Table(name = "T_COMMODITIES")
@Entity
public class Commodity extends BaseEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3023615974655448845L;
	//商品名
	@Column(name = "NAME")
	String name;
	
	//价格
	@Column(name = "PRICE")
	double price;
	
	@ManyToOne
	@JoinColumn(name = "ComCategory_ID")
	ComCategory comcategory;
	
	//品牌
	@Column(name = "BRAND")
	String brand;
	
	//颜色
	@Column(name = "COLOR")
	String color;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public ComCategory getComcategory() {
		return comcategory;
	}
	public void setComcategory(ComCategory comcategory) {
		this.comcategory = comcategory;
	}
	
	

}
